<?php

namespace App\Console\Commands\Shop;

use App\Kuafu\Shop\Service\UnifiedManagementService;
use Illuminate\Console\Command;

class RefreshUnifiedManagement extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'shop:refresh-unified-management';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '[店铺]刷新统管门店数据，外卖+抖音';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        UnifiedManagementService::waimaiRefresh(null);
        return 0;
    }
}
